﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using MM.Domain;


namespace MM.Web.Models
{
    public class MovieViewModel
    {
        [Required]
        public int IdMovie { get; set; }

        [Required]
        [StringLength(50)]
        public string Nombre { get; set; }

        [Required]
        [StringLength(50)]
        public string Sinopsys { get; set; }

        [Required, DataType(DataType.Date)]
        [Range(typeof(DateTime),"01/01/1900","01/01/2099")]
        public DateTime Fecha { get; set; }

        [Required]
        public int IdCategoria {get; set;}

        
        public IList<Categoria> Categorias { get; set; } 

    }
}
